package com.example.demo.NiuKe.v10;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str;
        String s="";
        while ((str = br.readLine())!= null){
            for (int i = str.length()-1;i>=0;i--){
                s= s+str.charAt(i);
            }
            System.out.println(s);
        }
    }
}
